package com.open.capacity.finance.dao;

import com.open.capacity.finance.entity.AuditModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 审计模型
 *
 * @author
 * @email
 * @date 2023-02-01 09:14:56
 */
@Mapper
public interface AuditModelDao {

    int save(AuditModel auditModel);

    int update(AuditModel auditModel);

    int updateStatus(@Param("id") String id,@Param("status") Integer status);

    int delete(String id);

    AuditModel findById(String id);

    List<AuditModel> findAll(Map<String, Object> params);

}
